//项目的起始页面;
import React, { Component } from "react";
import {
	View,
	Text,
	Image,
	Button,
	StyleSheet,
} from "react-native";
import { DrawerNavigator, DrawerItems } from "react-navigation";

import CustomDrawerComponent from "./components/CustomDrawerComponent";

import Home from "./containers/home";
import Personal from "./containers/personal";

const App = DrawerNavigator({
	Home: {
		screen: Home,
	},
	// Persomal: {
	// 	screen: Personal,
	// }
}, {
	initialRouteName: "Home",
	drawerWidth: gScreen.width * 0.7,
	drawerBackgroundColor: gColor.slideBgColor,
	contentComponent: props => <CustomDrawerComponent {...props} />,
	contentOptions: {
		inactiveBackgroundColor: gColor.slideBgColor,
		activeBackgroundColor: gColor.slideBgColor,
		activeTintColor: gColor.fontColorTwo,
		inactiveTintColor: gColor.fontColorFive,
		style: {
			marginTop: 22.5,
		},
		labelStyle: {
			fontSize: gFontSize.two,
			marginLeft: -5,
		}
	}
	
}) 

export default App;

